﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace chessLogic
{
    public class Rook : Figure
    {
        public Rook(FigureColor color) : base(color, FigureType.Rook) { }
        public override List<Position> GetPossiblyPositionNormalMove(Position position,Board board)
        {
            return getNeedPositions(getRookPositions(position, board), false, board);
        }
        public override List<Position> GetPossiblyPositionTakingMove(Position position, Board board)
        {
            return getNeedPositions(getRookPositions(position, board), true, board);
        }
    }
}
